<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="PostVotesList.aspx.cs" Inherits="PostVotesList" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phMain" Runat="Server">
    <asp:GridView ID="gvPosts" runat="server" AutoGenerateColumns="False" DataSourceID="dsVotes">
        <Columns>
            <asp:BoundField DataField="PostDisplayName" HeaderText="PostDisplayName" ReadOnly="True"
                SortExpression="PostDisplayName" />
            <asp:BoundField DataField="ParentPath" HeaderText="ParentPath" ReadOnly="True" SortExpression="ParentPath" />
            <asp:BoundField DataField="Average" HeaderText="Average" ReadOnly="True" SortExpression="Average" />
            <asp:BoundField DataField="Total" HeaderText="Total" ReadOnly="True" SortExpression="Total" />
            <asp:HyperLinkField DataNavigateUrlFields="PostId" DataNavigateUrlFormatString="~/PostUserVotes.aspx?Id={0}"
                Text="View Votes" />
            <asp:HyperLinkField DataNavigateUrlFields="PostId" DataNavigateUrlFormatString="~/PostUserVoteTotals.aspx?Id={0}"
                Text="View Totals" />
        </Columns>
    
    </asp:GridView>
    <acms:UserPostVoteAverageDataSource ID="dsVotes" runat="server" EnablePaging="False"
        OnSelectData="dsVotes_SelectData">
    </acms:UserPostVoteAverageDataSource>
</asp:Content>

